package com.carleasoft.mps.cms.business.process.bean.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 业务节点处理表
 * @author: yangHao
 * @createDate:2023/1/9
 * @description:
 */
@Data
@TableName("ex_business_node")
public class BusinessNodeEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    /**
     * id
     */
    private String id;

    /**
     * 流程编码
     */
    private String processCode;

    /**
     * 节点编码
     */
    private String nodeCode;

    /**
     * 节点名字
     */
    private String nodeName;

    /**
     * 顺序
     */
    private Integer sequence;


    /**
     * 审批人
     */
    private String name;

    /**
     * 审批人编码
     */
    private String code;

    /**
     * 审批结果  0：等待审批  1-待审批、2-同意、3-拒绝
     */
    private Integer approvalResult;

    /**
     * 审批意见
     */
    private String approvalOpinion;

    /**
     * 操作时间
     */
    @TableField(value = "OPERATION_TIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date operationTime;


}
